home *** CD-ROM | disk | FTP | other *** search
- Path: daily-planet.execpc.com!usenet
- From: scalish@execpc.com (Sherri Scalish)
- Newsgroups: comp.lang.c++
- Subject: Constructor classes
- Date: 22 Feb 1996 17:17:16 GMT
- Organization: Exec-PC Internet
- Message-ID: <4gi8es$4gn@daily-planet.execpc.com>
- NNTP-Posting-Host: blackmail.execpc.com
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.6
-
- Hope someone can help me, I'm getting very frustrated. I have a container
- class in which I have an array of classes:
-
- class OtherClass{
- private:
- char m_itema[30];
- char m_itemb[30];
- ...
- }:
-
- class ContainerClass{
- public:
- OtherClass Items[9];
- ...
- };
-
-
- How do I access the array's data members? I have tried:
- m_itema[0], ContainerClass->m_itema[0], ContainerClass.m_itema[0],
- OtherClass->m_itema[0]. OtherClass.m_itema[0], etc. etc.
-
- I have been working on this for days and am getting truly frustated. I
- would greatly appreciate an E-Mail to solve this mystery.
- scalsh@execpc.com. Thanks in advance!!!!
-
-